from rest_framework import serializers

from apis.models import ApisSrcip, ApisDstdomain


class DstdomainSerializer(serializers.ModelSerializer):
    class Meta:
        model = ApisDstdomain
        # 和"__all__"等价
        fields = "__all__"


class SrcipSerializer(serializers.ModelSerializer):
    class Meta:
        model = ApisSrcip
        # 和"__all__"等价
        fields = "__all__"
